package com.macro.controller;

import com.macro.service.BasVoService;
import com.macro.vo.BasVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 机构/店铺/订单/业务员
 * Controller   返回客户端数据
 */
@RestController
@RequestMapping("/api/basvo")
public class BasVoController {

    @Resource
    private BasVoService basVoService;

    /**
     * 多表连接查询(机构/店铺/订单/业务员)
     * @param orderid   订单编号
     * @return
     */
    @GetMapping
    public BasVo queryBasVoAll(String orderid){
        return basVoService.findBasVoAll(orderid);
    }

}
